﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Page_User_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (Request.QueryString["page"])
        {
            case "dangnhap":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UC_LoginUser.ascx")); //default.aspx?page=login
                break;
            case "dangxuat":
                Session["ten"] = null;              
                Response.Redirect("default.aspx?page=dangnhap");
                break;
            case "quenmatkhau":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCQuenMatKhau.ascx"));
                break;
            case "dangky":
                Page.Title = "Đăng ký thành viên";
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCDangKi.ascx"));
                break;
            case "chitietsach":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UC_ChiTietSach.ascx"));
                break;

            case "lienhe":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCLienHe.ascx"));
                break;
            case"thaydoithongtincanhan":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCThayDoiThongTinCaNhan.ascx"));
                break;
            case "giohang":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCGioHang.ascx"));
                break;
            case "themgiohang":
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UCThemGioHang.ascx"));
                break;
            default:
                PlaceHolder1.Controls.Add(LoadControl("~/UC_User/UC_Index.ascx"));
                break;

        }
    }

}